listbox: Don't steal focus-on-click
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 May 2020 23:43:04 +0000 (19:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 May 2020 23:43:04 +0000 (19:43 -0400)
commit7ef51da1c1650586a51a650042815dab97e3be3f
tree7e9b0d3302f5e7f6982dcd3b22fc5d6d5c695e5d
parentce949c0f25e017870f63077bf52630036574c682
listbox: Don't steal focus-on-click

If a row has content that is focus-on-click, and is set
to focus-on-click itself, then the row steals the focus
fromt he content, since it uses focus-on-click on button
release, as opposed to button press. Avoid that by
refusing to take focus if it is already on some
descendent of the row.

This was showing up in the widget-factory listbox on
page 2, where clicking on the spinbutton would briefly
put the focus on the spinbutton, only to lose it to
the row.
gtk/gtklistbox.c